{% extends 'base.html' %}
<br>
<br>
<br>
{% block navbar %}
    <div id="changemail">
        <div>
            {% if form.errors %}
                {{ form.errors }}
            {% endif %}
        {% if error %}
            {{ error }}
        {% endif %}
        </div>
        <form enctype="multipart/form-data" method="POST" action="{% url 'auser:changeemail' user.id %}">
            {#     {% csrf_token %}#}
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1">@</span>
                {{ form.email }}
            </div>
            <br>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1">@</span>
                {{ form.email_new }}
            </div>
            <input type="submit" name="ok" value="--提交--"/>
        </form>
    </div>
{% endblock %}
